package demo.demo5;

public class Client {
    public static void main(String[] args) {
        //创建代理工厂对象
       ProxyFactory factory=new ProxyFactory();
        //2.使用factory对象的方法获取代理对象
        SellTickets proxyObject = factory.getProxyObject();
        proxyObject.sell();
    }
}
